import request from '@/utils/request'

// 查询退货管理配置列表
export function listBiReturnManagementConfig(query) {
  return request({
    url: '/productAllocation/BiReturnManagementConfig/list',
    method: 'get',
    params: query
  })
}

// 查询退货管理配置详细
export function getBiReturnManagementConfig(id) {
  return request({
    url: '/productAllocation/BiReturnManagementConfig/' + id,
    method: 'get'
  })
}

// 新增退货管理配置
export function addBiReturnManagementConfig(data) {
  return request({
    url: '/productAllocation/BiReturnManagementConfig',
    method: 'post',
    data: data
  })
}

// 修改退货管理配置
export function updateBiReturnManagementConfig(data) {
  return request({
    url: '/productAllocation/BiReturnManagementConfig',
    method: 'put',
    data: data
  })
}

// 删除退货管理配置
export function delBiReturnManagementConfig(id) {
  return request({
    url: '/productAllocation/BiReturnManagementConfig/' + id,
    method: 'delete'
  })
}
